Add exceptional websocket commands

Just added some other commands from the websocket library.
I am not sure however if this is the correct way of handling exceptions. For my things I needed that there will be some IO action executed, which basically would shut down some other process running.