Add more error checking to sstliz wrapper.