It is an inflection of finish. It means to finish, end, conclude, finalize, complete, complete, exhaust, spend, consume.
It's over - it refers to the expression: '' ended, it ended a thing -