Exception handling did not deal with the case of msg being None correctly
When updating the case, timestamp needs to be updated too