Catch errors in log, trying to solve poker problems