added mdadm cleanup hook
added hooks