Don't assume return code is int.

Could be None if something went wrong.