Cleanup and ignorefile