Command handler now catches exceptions to not break the console input