#6 resolved. added try catch.