Fix write error on /ctl "disconnect".