wsgi/lib: cleanup