fixed broken logger status assumption. use isRunning() instead of stopped