Host: Improved config parsing, error handling

Not all config values are now required to be specified. Also, even in
case of an exception during the execution of the script, the instance
pid file is always deleted afterwards.