add warning if leaving during operation, closes #172