Fix load handler module in websocket init
Refactor handler and backend checks in init