Add timeouts to removal of tempfiles.