First set the contractor a reasonable additional period for performance.
Withdrawal from the contract for default under section 918 ABGB in principle requires that you set the defaulting contractor a reasonable period to catch up on performance. Only once this additional period expires without success can you withdraw effectively. You should set the additional period in writing and provably.
How long is reasonable depends on the extent of the outstanding performance. A period that is too short can endanger the later withdrawal.