Issue #233: Catch IllegalState Exceptions and log errors

There are times when the player may get into an illegal state, so catch
and log these times, but don't crash the app.