Stopped terminal from opening on window activation