(was causing segmentation fault). Verify that a connection remains before trying to send a return code.