SERVER-9248 Fix up try/catch block