better handling of corrupt swf files