Reverting destroy function until we figure out what's causing the NPE.