It should be their responsibility to keep up with pool maintenance until the deal closes. I'd call the realtor and let them know that you expect that.