Procedure destroyGW modified to handle multiple calls - probably an