A receiver may be required by the court to post a bond, which shall be considered a necessary expense of the receivership.