I filed https://bugzilla.mozilla.org/show_bug.cgi?id=913428 to work on the exceptions in the middleware.