Catches exceptions inside the import module, not allowing to reach main()
and terminate the application.
Cleans function parser history between imports.
Shows choosing function window even if only one function is found. This helps user to better understand failure if script contains no separate function defining sample.
Related to #645 (closed)