Attempted to solve the issue of doing cleanup logic right when a model
is removed. The issue is timing the cleanup such that it is performed
and finished before the model is removed, because the model location
must be available when the transaction is performed in connection in the
proceeding persistence context.

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