nil connection + instance variable for thread-safety
Merge pull request #3 from jnevelson/nil_connection

nil connection + instance variable for thread-safety