Update syncPerfGraphs to include line feeds in final log lines.

Also, use context manager to ensure logfile is closed (instead of manually
calling .close() and potentially accidentally leaking a file handler), and ensure
that stderr from rsync call is included in logfile.