Refactoring
Will stack log messages while web socket is disconnected