close socket asynchronously
Merge branch 'master' into async-close-socket

Conflicts:
	tests/automation.js
Merge pull request #196 from mykmelez/async-close-socket

close socket asynchronously