commit before leaving, continue on cursor