Fixed finally error. Added better error logging.

Fixed try block that had a finally clause. This doesn't exist in
C++! Also added better logging so I could identify which samples
are not predicted correctly.