reconnect if conn is nil