Fixed crash when clang-format process never ends