Reset exit code after error