app_perl: new param perl_destroy_func to specify perl destroy function

- if set, the module will execute the specified perl function before
  re-initializing the interpreter at runtime
app_perl: added documentation for perl_destroy_func parameter