Fixed exit commandline function