Added code to release restlet resources