locked var cleanup to allow unload of swf