Haha thanks, that is actually a hilarious bug. If you lose, you can just wait until all enemies die and still win lol. This has now been patched and will be fixed in the next update, coming soon ;)