Use references when possible.
Make sure to remove bridges at terrain shutdown.

This is done by using a std::function as callback.