Avoid deadlock and interaction hacks by proper cleanup of object file list