Did it fire off the first volley, then move in? I'm guessing optimal range caused it to move in too close while it was reloading. You probably want to change it to max range/dont get hurt. Try some simulator battles with different strategies and see what happens.