title: Play: stop WebSocket actor in case of failure
body: <p>I'm using Play framework and Akka actors for WebSocket communication. I'm using tryAcceptWithActor method:</p>
  
  <pre><code>def socket = WebSocket.tryAcceptWithActor[String, String] { request =&gt;
    Future.successful(request.session.get("user") match {
      case None =&gt; Left(Forbidden)
      case Some(_) =&gt; Right(MyWebSocketActor.props)
    })
  }
  </code></pre>
  
  <p>I would like MyWebSocketActor to Stop when it fails (e.g. throwing an Exception). Is this the default supervisor strategy?
  Otherwise how can I define a strategy like this? (I don't know if MyWebSocketActor are created as top-level actors or children of some actor hidden by Play)</p>