More websocket cleanup and select profile from storage