clean up handles