fix closed channel on socket close
make server logging consistent with other logs