Cleanup and log bad entries to console