     */
     
     deinit {
-        self.this ! Disconnect(sender: nil)
+        //TODO: evil hack to kill socket
+        if let state = self.statesStack.head() {
+            state.1(Disconnect(sender: nil))
+        }
     }
     
 }
     */

    public var listeners : [ActorRef] = [ActorRef]()
    
    override public func preStart() {
        super.preStart()

     */
    
    func connected(socket: WebSocket) -> Receive {
        return {[weak self](msg : Actor.Message) in
            switch(msg) {
            case let c as SendMessage:
                socket.writeString(c.message)
