closing gui by default