Removed a possible race condition when slicing to the same gcode file in direct succession