Import sys in case of error