Update .gitignore.
Remove some nonsensical code.

Lazy I/O can't magically cause a live reference to get garbage collected.