Exception handling in management moderator command for 2.4.x

Added some simple python logging and exception handling to the moderator on managment command.