Exit process with -1 when error occurs
Print stack only when env DEBUG is set