Studio interface sometimes becomes disabled (grayed out)

I don’t know if it’s a known issue, but sometimes the entire Studio interface becomes disabled (it is all grayed out, and cannot click on any control any more).
If it happens in the middle of editing something (especially a screen), in addition to become unresponsive, I noted that the “OK”, “Close” etc. buttons in the upper right corner disappear.
The only way to recover from this state is to refresh the browser, losing any unsaved change…

My specs:
MacBook Pro with macOS 10.11.6
Browser Safari 10.1.1
JDK 1.8.0_131


I want to add that this happens every time macOS goes to sleep.
Tried with Safari, as described in my first post, and latest Chrome browser. So it doesn’t seem related to a specific browser, but probably to the network communication being shut down by OS sleep.