Add timeout logic to trap open connections.