Emit end and close event on connection closed
Merge branch 'master' of github.com:bixuehujin/reactphp-mysql