Close modal after deleting app

* Handle delete failure by showing an alert with `alert`
* Wait to remove model from the collection until the server responds
  with `wait: true`