Changed halt() to panic()