replace simulator_service.close

by asyncore.close_all after thread stop