changing CMD from mysqld_safe to mysqld. this makes it possible to terminate the container without error.