Close compilation buffer after 1 second