The costs of such proceedings shall be paid by either party at the discretion of the court.