Add check for status of running build