remove PROMPT_COMMAND and add guirunning guard