Destroy the session after a test

This can help with one hard-to-find bug in tests.

Steps to reproduce will be provided.
This change is not correct. There is no `session` in console application.