Added stop functionality and ensured all servers are cleaned up on
 main server shutdown.