Better email connection management. Avoid session expired