Upon the termination of the receivership, the receiver shall render a complete accounting to the court and shall dispose of surplus funds as the court directs.