adding exit code so script exits on user abort