returning after error