gustafn
committed
on 14 Jun 18
make code more robust, when connection is already closed