Exit with escript exit codes.