The designer window cannot be closed while a package is running. Stop the debugger before attempting to close the window. ...