Fix uncaught exception when there are no connections to write to
Merge pull request #47 from rymo4/fix_writer_conn_exception

Fix uncaught exception when there are no connections to write to