Call bend_stop only for main process (not from forked child)