Server works after edits. Added message for client closing.