Section 40. If an executor, administrator, guardian, conservator, trustee or receiver resigns or is removed, and neglects or refuses to deliver to his successor all property held by him under the trust, the probate court may, upon application of such successor or any person beneficially interested, order such delivery made, and shall have like powers for enforcing such order as are given to it by section thirty-four.