ssa.c, acm.c: Change ssa_upstream_mad.
 Close old connection if needed