Bay Ridge state senate race bitter to the end