fix memory leak: apparently we must close contexts to release JGit related resources