Consistent handling of MCAPI object.

Remove unnecessary conditional wrappers, consistent naming of the
object, and moving the object inside the try/catch block available.