Formatting and kill thread on destruct