Notify shutdown to ConnectionFactory only if it already exists
Fix shutdown issue