Fix exiting of FIX API sample.