gustafn
committed
on 20 Feb 18
avoid errors, when connection is already closed