Code now does not write to csv if sd.pull_data fails for symbol.

Prior to this, the code would attempt to write whatever data had been
gathered to csv. Now, nothing is written.

NameErrors are now handled as any other error.