fixing cleaning up threads

because of sonar input threads weren't cleaned up.
now fixed