fixed a bug

forget stop ListenerThread and ReadThread in shutdown()