Store exceptions raised by ``abort`` in the WSGI environ.

This makes it easier to access the original exception later in the request cycle (e.g., other middleware or in custom error handlers).