This is another source of crashes after creating and destroying a second shell window. The signal handler was left connected with the destroyed shell window as the closure.