server: removed resource.close()