command/publish: stop when forbidden error, fixed #47