added sleep interval to wait before checking whether sopcast is running