Added stack trace to critical stuff