Initial test for solving locked browser due to bad network connection.
This still needs testing, especially in the case of moving main -> sleep
-> main