added exception for disconnected clients