attempt to fix hang condition in quit sequence