Configure autopublishing message settings
Exit with correct exit code on failure