The court, upon petition filed by any party, and after notice and hearing, may
(1) review the action of the prothonotary in approving or rejecting the security offered;(2) increase or decrease the amount of any bond or require additional security for cause shown;(3) strike off a bond improperly filed; or(4) permit the substitution of a bond and enter an exoneration of a prior bond.