You could ask friend to watch over it for a while until you come back. If you do that make a list of things your friend needs to do to take care of the pool, and leave all the supplies that they need in a handy place where they can find it easily. if you don't want your friend to come over, you can cover it like you do during the winter, or you could just let it run and take care of any problems that may occur when you come back. My best bet would be go with the friend. If they have any problems they can call you, and you won't have to deal with any pool problems when you come back. If you are moving, make sure a neighbor or friend knows how to take care of the pool to teach the new neighbors how to take care of it until they got it down. If they already know how to take care of the pool, disregard the previous sentence.Hope this helps!!!:)
If your gate is not currently self-closing and self-latching you need to bring the gate up to code. I recommend the Magna Latch and Tru Close Hinges.