Don't use a separate thread for sending files

Ensuring thread-safety of this separate thread would have been too
elaborate for now.