R2DQ: Add gracefulShutdown test