Use shutdown() instead of close() to simulate disconnects

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>
Merge pull request #194 from rgs1/fix-testing-disconnects

Use shutdown() instead of close() to simulate disconnects