Handle errors when checking status.

Reviewed in https://codereview.appspot.com/20830043/