I (shamelessly) copied the catch pattern from OOTB so as not to break anything in the product i wasnt aware of.