Deleting the (debug) hook at the end of router