Fixed shutdown process when workers are crashing.
Support for config files.