Fix unlink issue with piped instances