Fixed issue on OS X when the system sleeps

When shut down, the Quartz (QZ) video system didn't properly unregister system sleep notifications. This means that on re-initialization there is a stale notification callback which would cause a crash if the system went to sleep.