Minor improvements on some management commands
Show traceback when the execution fails.

Fixes bug #3135