Fixed an issue where it didn't check if the folder was open before reading the message and could throw an exception in the exception handler