Thank you for playing and reporting that the game can get into an unfinishable state, which is something I didn't want.
Can you please provide me some details of how you broke the portals (by that I assume you locked yourself in a room with no way to escape), so I can fix it?