set exited flag to allow appropriate re-entry