changed Core.close to stop for better readablity