clean up old session when --session-override is used (fix #3891)