[IMP] wsgi: added exception handling.