added quit() to writeSeries() if overwrite not enabled. Problem exiting interpreter with raise