Add sandbox pre-create hook