Better closing of the eshell window