       self.navigationController?.pushViewController(viewController, animated: true)
     case .Failure(let error):
       let alertController = UIAlertController(title: "Error", message: error.localizedDescription, preferredStyle: .Alert)
-      alertController.addAction(UIAlertAction(title: "Cancel", style: .Cancel, handler: nil))
+      alertController.addAction(UIAlertAction(title: "Cancel", style: .Cancel) { action in
+        if let indexPath = indexPath {
+          self.tableView.deselectRowAtIndexPath(indexPath, animated: true)
+        }
+      })
       self.presentViewController(alertController, animated: true, completion: nil)
     }
   }

    navigationController?.pushViewController(viewController, animated: true)
  }

  func resultHandler(result:StarshipResult) {
    SVProgressHUD.dismiss()

    switch result {


    case .Examples:
      SVProgressHUD.showWithMaskType(.Gradient)
      viewModel.enterExample(indexPath.row, completion: resultHandler(indexPath))
    }
  }

