guard against trying to close or end and already close shift