This is in preparation for fixing #1421 - it allows us to encapsulate the exception handling in the server classes, so that we can keep the skeleton (flarum/flarum) lean.