Nervy three-wicket win over Phoenix concludes fourth-placed campaign