Wait a moment before processing the new file to ensure it is completely on disk.

It appears that sometimes the plugin reads an incomplete file for
whatever weird reason.