exit Hot Module Replacement script if not in Browser context