Wrap run command with try-except for better logging
Refactored core commands
Added missing decorator code