app2 close mysql connections