clean up build events