Added support for user settings. Prevented inbox from throwing an error if in closing state