Errors/Exceptions
There are a variety of reasons why this function might fail, the most
common being that the object is not already running. In that situation,
the exception error code will be MK_E_UNAVAILABLE;
you can use the getCode method of the exception object
to check the exception code.