Fixes #2 by making Connection objects safe for concurrent access