INT-3233 NIO, Windows 7 and Java 7/8

With Windows 7 and Java 7/8 closing a server channel does
not close the underlying socket. Closing the Selector closes
the socket.

It is not clear why this is needed given that a selector can
be used for multiple sockets.

However, we only use the server side selector for a single
server socket so there is no detriment in closing it.

Also close the selector on the client side (even though it is
used for multiple sockets, because we are stopping the factory
anyway and all sockets will be closed).

However, closing the selector opens us up to 'ClosedSelectorException's
in several places. Add catch blocks to deal with this exception, and only
log an error if the factory is active.