The ship has powerful shields, so it would remain with little damage and continue to fire, destroying the machines. You would have to destroy the shields at the source.