ensure setting the socket back to blocking before sending a new message

+ cleanings