Kick support pull.

Added support for being kicked. Also added close methods to network(tcp/udp) handlers.