Close handlers when process exit itself
Merge pull request #29 from blackwithwhite666/unclosed-handles

Close handlers when process exit itself