Fixed crash on closing trading gui with button