Olivier,
Really, do not worry about Avast keeping the ports open.
It needs to do so as part of its' normal operation. As Voj stated, you can disable the automatic service start, but forgetting to start it later on could be disastrous!
Mine Avast runs all the time with the ports open and I have never had a problem.
Feel at ease.
Techie