How to stop screen waking on connection loss