Use _exit instead of exit where possible