Now catching SQLexceptions on close.