clang-format applied. Use Allman style for break before braces. I tried to like it the other way but can't do it.
destroy changed to terminate