Dog gets a scare while sleeping