Added modal option, defaulting to false, while used requires developer t...

...o call close(). Fixes #134