Thread safe implementation of Command patterns using Executor