added detection for the gui running, was causing errors during install process