Exit dialogue when going to jail (Fixes #1635)