FIX: use the correct Connection variable in exception logging