Do all I/O in the IOThread and not in the main thread. This solves an upcoming deadlock problem.
Attach a file by drag & drop or click to upload