Actually, that is a vanilla MC property.
Mobs that are located 128 blocks or more, away from an active player, will disappear immediately.
Only time that it will work while you're offline is,
1. Some other player is within 127 blocks or nearer.
2. No one else is around.