Adding error check for no com ports