Fixed bug on the exit code.