Added session commit if user is ceasing work