[ExploitTemplates] Fixed bug in Connection.recv()

socket.recv() seems to return an empty string if there's a problem with
the connection. In this case Connection.recv() now raises a
ConnectionError.