Updated Context to still be able to close if no previous context is open.
Added better versatility to FileUploader.