Only captureStack when on debug mode

- It tries to fix bug #63