Added support for restarting on quit, on by default.
Added config.py to control restarting on fail