@Override
	public final FTPResult handleResponse(FTPInterface inter, FTPResponse response) {
		if (response.getCode() == 150 || response.getCode() == 125) {
			try {
				synchronized (uploadSync) {
					while (upload == null && !stopRequested) uploadSync.wait();
					upload.write(getData(inter, response));
					upload.flush();
				}
				return null;
			} catch (IOException e) {
				e.printStackTrace();
			} catch (InterruptedException e) {
				e.printStackTrace();
			} finally {
				try {
					if (upload != null)
						upload.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		} else if (response.getCode() == 226) return FTPResult.SUCCEEDED;
		return FTPResult.FAILED;
	}