Add docker upstart pre-stop and post-start events to prevent race conditions