properly checking if stream was opened successfully in internet.open