Issue #112: Refactored server.stop method. Added stopping of tcp servers