ADD if --keep-open argument is set, keep the window open