Ah, I see now.
So I tried the game again and realized why it feels wrong: I went on a mission, successfully completed first task, then successfully completed second task, and suddenly I got caught and put to prison! That seems unfair and frustrating, because I did nothing wrong.
I believe the roll for police arrival should be done only upon failed tasks (and when trying to grab more gold at the end), not on successful ones.
And yeah, keep up the good work :)