Parameterize exception handling in the OwinRailway.