bugfix: connection closed