code: private void closeChannelWithLoginFailure(Channel channel)
  	{
  		ChannelFuture future = channel.write(NettyUtils
  				.createBufferForOpcode(Events.LOG_IN_FAILURE));
  		future.addListener(ChannelFutureListener.CLOSE);
  	}
docs: Helper method which will close the channel after writing
  {@link Events#LOG_IN_FAILURE} to remote connection.
  
  @param channel
  The tcp connection to remote machine that will be closed.