Close handles only not equal to INVALID_HANDLE_VALUE

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Log cache can be disabled

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Settings dialog can set EnableLogCache

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Update changelog

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>
Merge branch 'disable-log-cache'