change die on Exception in OnApp.php