logging exceptiosn raised if failing to get a cmd