shutdown repository manager when resetting if it exists