fixed stylesheet leak on shutdown