The Proteas, chasing 492, lost three wickets for five runs in eight balls but recovered to close on 117-4.