Add proper logging to minimizer and cleanup