Using File API convention of blocks with open

If using a separate connection for Import
we should also remove the connection once
the job is done so that there's no unexpected
behavior for code running around this that
expects Import to be part of its transaction.

ActiveRecord transactions are per-connection.