Added deletion of proessed messages and safty catch if files are not copied.