[Travis CI]: Deploy Do proper session teardown and potential rollback

generated from commit 1641b39c3051bf6a4f6eb73016fe589e16f43ecf