[frontend] Handle timeouts on backend calls