ยง 8502. Stay and dismissal on failure to give security. Until security for costs is given pursuant to the order of the court, all proceedings other than to review or vacate such order shall be stayed. If the plaintiff shall not have given security for costs at the expiration of thirty days from the date of the order, the court may dismiss the complaint upon motion by the defendant, and award costs in his favor.