Fix for BZ 891431: Pre/post stop hooks for ruby not getting called.

MERGE