nitg: Added C stack trace when encountering an error