Added handlers to catch git errors and client handlers to get more useful server response