Handle gitdll exceptions

Signed-off-by: Sven Strickroth <email@cs-ware.de>