Add license
Fix event loop close issues
Merge branch 'master' into proactor
Add logging