title: Unexpected alert ends completely protractor test session
body: <p>I am using protractor as a test runner for our end-to-end testing of AngularJS app. Some code uses alert to report an error to the user. Yes, I know that is not the optimal approach to exception handling but this is the way the code was written (and it will be changed later).</p>
  
  <p>However when an alert is shown (and not expected) an <code>UnexpectedAlertOpenException</code> is thrown and the whole protractor session is ended, no other tests are executed and the browser window is not closed and I have to close it manually.</p>
  
  <p>Is there a way how to catch this exception and handle it so the spec that was being executed will be marked as failed with unexpected alert open reason and protractor will continue and execute the other specs?</p>
  
  <p>Thanks for any help! </p>