Fixed bug in autoFork
Fixed error handling in config class