Move the error-catching "sub end()" to MC_Controller_REST because all JSON-returning API controllers use it as parent