Fix to open the S3 connection only once needed.
Merge pull request #4 from JeromeParadis/master

Fix to open the S3 connection only once needed. by @JeromeParadis