adds support to UIDevice sleep operation.