so you only need try-catch around the actual "close" call