master: Handle deserialization exceptions

Catch all deserialization exception in message handling code, respond
with disconnection from the client.

Change-Id: I92b3fc9a8d5cd2adade33a6e3268e16c05261eb6