fix mocha exit code