This is redundant, because `socketCreated` cannot be 0 given the `try ... except ...` above.