Handle some exceptions