Quit method adapt if editor or build version