Fix problem of server not stopping after stop command (channel select
operation timeout)