Resuming when an error occurs