Use a 5 second timeout when waiting for the client connection to avoid deadlocks