process and detect normal exit