smart dog close the door for his owner