Cleanup args and pointers