Add iocatch function to use old Prelude.catch.