Temp fix for synchronization issues
Resolved thread blocking issue
Readded synchronization to sendMessage in ServerHandler