Cleanup temp files if dying due to replication lag.