IOError catching

Signed-off-by: noahg <noah.gunther@gmail.com>