Added support for Stopped callback in TCP server