Did you know ... Search Documentation:
PL_close_foreign_frame()