Add timeout when server isn't responding

Resolve T14