cleanup corefile