I also confirmed it on small ships, the Arvida ship, and the Zane ship. To be precise, it seems to throw an error the moment the enemy ship runs out of energy.