register shutdown hook for Spring (I thought we were doing this already but I couldn't find it...)