--log file object getting closed prematurely (Issue #219)
tests for --log and --log-file
update changelog