Log any exceptions raised when running system commands