test harness: convert handling the Redmine daemon into a contextmanager