Respect middleware errors.

This change causes the namespace to reject sockets that do not satisfy the middleware constraints. This is needed to support testing for inetCatapult/shortwave#126.