Added cleanup code for stale sessions