Network state handling improvements

Cyclic refresh is now being disabled when there's no internet
connection.