This will clean up resources allocated in initiate_connection() properly.
Attach a file by drag & drop or click to upload