Readded synchronization to sendMessage in ServerHandler