implemented timeout in client when master doesn't respond