When window is clicked, program closes

signal connected with closing, clicking emits the signal