ws: Exit cockpit-ws after timeout if socket activated

Exit cockpit-ws after a 5 minute timeout if socket activated
and nobody has connected or is still connected.