use finally?

```java
if (m_sysInfoAgent != null)  try {
    m_sysInfoAgent.shutdown();
} finally {
    m_sysInfoAgent = null;
}
'''