Session and IOWorker cleanup