Do not destroy context if socket test fails