MULE-8018: Merge http connector code cleanup

Stop server *before* workManager.