added settings file
graceful shutdown