Add some code to troubleshoot threading issues.
Hide corefiles from git.