Non-blocking sockets in NetworkHandler