conventions
ensure that first arg is either 'master' or 'slave-'
cleaner exit by error_invocation()