Fix bug for libraries overiding stop()

This fixes an issue with libraries that override the stop method.
The bug was discovered with a library that overrode the stop() method
and in that method called available which then called stop() etc.