exiter

class that closes the program when the users presses the X button