Added conditional execution of cleanup in model, since creation may not
be set.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>