Is there a time limit for OnShutDown callback?

Is there a time limit after which the OnShutdown callback will not invoke, For eg. If my device was inside a room and got out of focus for 5 hours so when i come back will OnShutdown invoke then?