Restore rescue block for when IM is enabled