disable monster;
remove skirt;
then insert a pause between them:
sleep(1);
All commands that affect objects on the map are executed in a different thread than your script, so the "disable monster" command actually only places itself in a task list and will only be executed when it's that thread's turn, and the most reliable way to do this is to pause the current thread, which sleep() does.