Arduino wont start unless COM Port is open, works as intended afterwards

pinMode(RxD, INPUT);
pinMode(TxD, OUTPUT);

Should these lines be there?

Where do you start softwareSerial.

blueToothSerial.begin(9600);

Leo..