fix normal exit trap