Dont unref pipeline before it is stopped. This closes #11