Fixed Excel closing prematurely