Catch netty client exceptions

Provide a handler for exceptions in the netty client.