apply: make init_apply_state() return -1 instead of exit()ing