Blind attempt to fix false termination issue and the dirty cin hack.

Since I cannot reproduce the false termination issue you are having and also not yet know how to compile/run the alice stuff, this is kind of a blind attempt to fix it. I hope I didn't forget anything.

Please see if this makes any difference. If it fixes the issue then I will make another PR to the dev branch of fairroot after I make sure this is done for only devices, not only for alicehlt devices :)

Hope this helps!