fix/156 add payload socket.close() test
Merge pull request #161 from jphire/master

fix/#156 add test for calling socket.close() in payload