Adding is_running flag to flopsy thread