How To Safely Terminate Tensorflow Training With Keyboardinterrupt