Modified wsgi code to add better error logging.