Fix closing sessoion to non-existsing domain