attempting to get a graceful shutdown