Cleaning up server hooks