Fixing bug in disconnect around destroying a session when it doesn't exist