Added extra except block to catch unknown errors