Cleaned up minor issues in the code that may be contributing to crashes when closing the last todo file. Address Issue #42.