widgets.browserview: clear image when (un)collapsing preview
core.loader: handle race condition when process quits unexpectedly