Added script is dirty guard when closing FreePIE