Attempt to fix issues surrounding classes becoming unloaded after periods of inactivity