Close the socket if no child process was started
Print an error if the supervisor receives an unexpected message