Cleaned up except blocks required for racktables API to only catch specific errors. Added locking using tendo.singleton