Fix online mode(sorry about that) and added shutdown for 1.7.2