You may need to save your settings before sending the intent and restore them in OnResume
If the resources are just low and not running out, it is possible that using app.OpenUrl instead of your own intent will make DroidScript slightly less likely to appear inactive.
If this is an option for you, I would recommend trying it.
Another possibility is to examine whether you really need to open a browser or can you display a WebView instead.