Added exception handling in run()"