Just realized that to check the theory properly, need to sleep in both places the attachment-saving thread is started (the next question is: is 3 seconds enough?)