TROIA-289 fix
TROIA-289 another fix in executor shutdown
TROIA-289 final fix for command executor shutdown - changed locks