Fixed missing end
Differentiating between failed enter and other