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

Signed-off-by: Raul Gutierrez S <rgs@itevenworks.net>