Bug: Shiny apps disappear after a few minutes away from the broswer

The shiny window just closes. Nothing else happens.

Please include a reproducible example, or more explicit steps to reproduce the problem you are experiencing.