added os.exit (without junit test, jenkins will crash otherwise)

set accessor of object variables in CommandLine.java to final