Added timeout whilst waiting for client to connect