Add logging of command return codes.