LPS-50341 clean up classes dir on compile error