Attempt at destroy function.