This sentence is a Compound complex (D). As it is made up of:
1) A compound sentence which consists of two independent clauses join by the conjunction “so”.
2) A complex sentence which consist of main clause and a dependant clause. These clauses are join and related with the subordinating conjunction “unless”