a galliard dowland had written when queen elizabeth was still alive , in honor of a cornwall sea captain named piper , whom she 'd given a letter of marque to attack the spanish , but who instead turned an uncontrollable pirate , pillaging the shipping of any flag convenient .