Smart dog trying to escape