but than it does not look like expected behavior: it just checks that the main loop is working fine (it did not get stuck inside some handler), but it does not mean the process is idle, note that the given approach it doesn't take into consideration other threads inside the renderer process.