add graceful shutdown to q

shutdown redis in subscription tool