cleanup doctrine subscribers and imagine handling