The court may give or refuse costs on motions at its discretion, except where otherwise provided by law or these rules.