Added a WS.shutdown() command and an action that shuts down