Pausing the game doesn't really pause it
This was reported in #3341, but it was closed and never fixed. Pausing the game doesn't really pause the game. When pausing, you can still see mobs moving through the Pause Screen, and hostile mobs can damage the player. This also applies when opening a Command Block.