Check for running state for linked containers

Closes #64.