This is a roguelike game, meaning that it has procedurally generated levels and permadeath. Keyword being permadeath.
If you don't want to lose all your progress from dying, the best solution would to to disable ghost, though I forget how.
Edit: press Shift+Control+F3