Now handles errors from Git more gracefully.