fix(socket): close connection when unauthorised

i.e. when session cookie is not transmitted