cleanup folders even on EPIPE error