_shell_p should be set to zero when Gulam exits
_shell_p should be set to zero when Gulam exits