Fix bug regarding ConnectionListener

If a connection was closed without a ConnectionClosedMessage,
ConnectionListener would not get notfified
Fix thread access in ModuleView, add logging