nitg: Added C stack trace when encountering an error

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>