clean up twisted