added thread syncronisation for sending messags to server and made fatty ghost himself when reconnecting