Future Release X: - deactivate layers before entering ContextR code and activate them on leave