second attempt at fixing travis ci license issue.
updated connection type session on disconnection.