Bash script running in container when finishes doesn't return to calling script outside of container

With the latest beta release (Docker 1.12.2-rc1-beta27), I face the following problem:

When I run a script on Mac that starts the containers and calls another script inside a container, when the script inside the container finishes, it doesn’t pass control back to the calling script in order to resume the original script. I have to press ctrl+P+Q in order to cancel the script inside the container and get back to the outside one.

This behavior started with the latest release.

The today release (beta28) solves this problem.