Fixes for handle_post_spawn proc

Fixes #4523 runtime error