Added conditional debug console logging of non-empty stacks on process
finish.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>