The client's process would not stop because the receive function did not properly set the timeout before waiting for a server connection. This resulted in the server not knowing the client disconnected until the process on the client machine was forcibly terminated