Removed redundant code
Set the mobile API to null after disposing, so we don't try to dispose it twice