. . . "A function is also added to handle cases when there is an error when the client tries to make a connection." .