try {
logger.debug("Starting to delete buffered file {}.", toDelete);
IProcessComponent delete = fileManager.delete(toDelete);
if (!fileManager.isAutostart())
delete.start();
delete.await(MAX_DELETION_PROCESS_DURATION_MS);
} catch (NoSessionException | NoPeerConnectionException | InvalidProcessStateException
| InterruptedException e) {
logger.error(e.getMessage());
}
}