If any case occurs not directly or by fair implication embraced in the express provisions of the law, the court may make such disposition of the costs as, in its sound discretion, may seem right.