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

I get the same behaviour when using a 9v battery to power the arduino unfortunately

9V block batteries are unsuitable for powering the Arduino. They will last only a few minutes if fresh.