Don't crash on unregistered serial ID
A second try at graceful shutdown