Exception handling in management moderator command

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