Signaling finished session through an MVar; mainLoop consider only running sessions.