protect rettach in pcall