Add command queue framework with robust exception handling
Introduce a structured command queue system, enabling retry and logging mechanisms for task execution. Incorporate an exception handling framework to enhance system resilience and reliability. Accompanying tests ensure correctness of retry and logging behaviors.