Check for null when running GraphShutdownHandler

Now it at least logs a warning and doesn't crash out with a
NullPointerException when attempting to shut down something that is
null.

Closes #2

Signed-off-by: Patrick Wagstrom <patrick@wagstrom.net>