Create content file only if connect succeeds