Remove obsolete files, fix Error object instance create in publisher