make 'init' more idempotent in case of errors