NettyTransport: check if the sender is null in handshakeFailed.

The sender might have already been removed by the clear() method
when the handshakeFailed() is invoked. Check if the sender is null
before calling shutdown() on it.