cli: addition to fix for https://issues.jboss.org/browse/WFLY-2644 - syn...

...c on the list of shutdown handlers to avoid concurrency-related issues

Thanks,
Alexey