remove unnecessary test check of exit