Wait for request to finish.