handle phantom normal exit