WFLY-1247 Initial core work on graceful shutdown