Improve restoring the send state after unsuccessful sends.