Wrapped end function in a paranoia block