cleanup wshandler