Cleanup and chmod