Sharks hold on to beat fast-finishing Panthers in cliffhanger