Refactoring to better track errors
Check for and remove large dumped core files