Reset lastexitcode after try/catch