Bonus attack first works, yeah, done it a lot myself. I also agree with OP's point that it shouldn't attack with offhand if the enemy is dead after the mainhand attack.