Destroy the session after a test

This can help with one hard-to-find bug in tests.

Steps to reproduce will be provided.
This is workaround for the php session_destroy() function.
It can destroy only a started session. Or maybe for the session_write_close() which doesn't clear session_id().
So if `($this->getId() && !$this->getIsActive()) == true` that mean we have closed session. And to destroy it we have to start it again.