close compile buffer after successful compilation