Polls have closed and votes are now being tallied in three state by-elections. While the Liberals look set to retain both Epping and Hornsby, a "teal" independent is hoping to wrest control in Pittwater - and the result's likely to go down to the wire.