Apply afterStop when no stop callback is provided