SONAR-2965 Provide a way to close JPA session to avoid DB timeout
Session will now be closed before running maven goals and before sensors.
A new session will automatically be opened on next try to access DB.