Fixing bogus cleanup on linux