At last he was happily got down without any accident, and then he began to beat Mr. Guppy with a hoop-stick in quite a frantic manner.

 means he was happily extricated, and then began to beat Mr. Guppy with a hoop-stick in quite a frantic manner.
