[#54074563] fixing but with cleanup

closing sql file in measure so test can delete it