hs_exit()/shutdownHaskell(): wait for outstanding foreign calls to complete before...