move cleanup to after play compilation

so we can use less files in the build