have peer manager stop on graceful shutdown