This change ensures that it is possible to put a plugin in an unprepared state by calling releaseResources().