Add dispose guard

Then we don't always have to check if the instance is already disposed when
overriding the dispose()-method