Shutdown websocket, window change recorder and timeline uploader in destructor (lib)