Convert panic() call to more specific, overrideable method

Preparation to use a typed exception in Rakudo.