Set all sockets to -1 on init and close