Forgetting to correctly close the ifs statements in a nested contest makes gretl stopping responding to user requests. If they come from scripts/console, they're ignored, while through the interface it still works, but crashes with ols (and other commands as well, i suppose).
The only way to recover functionalities is to restart gretl.
This is an example script.
a = 1
if a = 0
if a = 1