Close blockEditor with rhinoscript

Hi There,

I am trying to create a new block editor with rhinoscript. To prevent interference with the existing block editor (dialog) I want to close it with rhinoscript.

Is there a way to close the block editor dialog and end the block editing mode from with rhinoscriptsyntax or rhinocommon.

cheers,
Tim