Corrected policy server default option
Fix broken packet encode if no endpoint

Endpoint is None when default error handler is called which breaks string concat.
Setup socket AFTER websocket is handled and kill jobs even if not "connected"

Make sure to cleanup jobs even if were not connected.
Socket might be in state NEW if websocket failed, create socket when were ready for it instead
Merge branch 'duego'