No longer doing everything inside a with statement, added huge try/except block