added gui and close app for unix build