Cleanup of code path for handling message submit errors