What could've happened is that the turret still saw you when the doors were closing and managed to land a shot on you that then killed you. Which is unfortunate, but it can happen. However, we can try to optimize the game to ensure that deaths that seem unfair don't happen as frequently. Again, thanks for trying the game out, and for the feedback! :D