finished encoder signal handling