dont call destroy on null

fixes #5