#86 finally close
NPE fix
Merge pull request #87 from thinker0/hotfix/finally_close_npe

Hotfix/finally close npe