pump: add post_remove function to C++ wrapper class