Signal an error on unknown middleware (fixes #82)