title: TensorFlow not writing events
body: <p>Below is a code snippet that I use to monitor events when training a DNNRegressor. I am running from a Jupyter notebook. </p>
  
  <p>During training, I get the following errors in the terminal:</p>
  
  <blockquote>
    <p>E tensorflow/core/util/events_writer.cc:162] The events file
    /Users/eran/Genie/PNP/TB/events.out.tfevents.1473067505.Eran has
    disappeared. E tensorflow/core/util/events_writer.cc:131] Failed to
    flush 2498 events to
    /Users/eran/Genie/PNP/TB/events.out.tfevents.1473067505.Eran</p>
  </blockquote>
  
  <pre><code>def add_monitors():
       validation_metrics = {'MeanSquaredError': tf.contrib.metrics.streaming_mean_squared_error}
       monitors = learn.monitors.ValidationMonitor(valid_X, valid_y, every_n_steps=50, metrics=validation_metrics)
       return [monitors]
        regressor = learn.DNNRegressor(model_dir='/Users/eran/Genie/PNP/TB', 
                                  hidden_units=[32,16], feature_columns=learn.infer_real_valued_columns_from_input(X),        
   optimizer=tf.train.ProximalAdagradOptimizer(learning_rate=0.1),       
   config=learn.RunConfig(save_checkpoints_secs=1))
       monitors = add_monitors()
       regressor.fit(X, y, steps=10000, batch_size=20, monitors=monitors)
  </code></pre>
  
  <p>Any ideas? When opening TensorBoard I do not see any events being recorded</p>